package Extends.homeworkYuanZhu.com01;

public class ZhuTi {
    private double r;
    private double h;

        public double getR() {
            return r;
        }
        public void setR(double r) {
            this.r = r;
        }

        public double geth() {
            return h;
        }

        public void seth(double h) {
            this.h = h;
        }
        public double tiJi(){
            double s = 3.14 * r * r * h;
 //           System.out.println(s);
            return s;
        }
}
